//
//  YJYBannerView.h
//  BannerViewDemo
//
//  Created by BaizYi on 2018/10/31.
//  Copyright © 2018 BaizYi. All rights reserved.
//  无限轮播图, 但是只能是图片, 不能播放视频

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, ShowType) {
    showTypeBannerView = 1,
    showTypeBrowserView
};

@class YJYBannerView;
@protocol YJYBannerViewDelegate <NSObject>

@optional
-(void)bannerView:(YJYBannerView *)bannerView selectAtIndex:(NSInteger)index;

@end

@interface YJYBannerView : UIView

@property(weak,nonatomic) id<YJYBannerViewDelegate>delegate;

@property(copy,nonatomic) NSArray *imageList;


-(instancetype)initWithImageUrl:(NSMutableArray *)imageUrlArr frame:(CGRect)frame;
-(instancetype)initWithImageArr:(NSMutableArray *)imageArr frame:(CGRect)frame;


@end
